<?php

namespace Design\Structural\Proxy;

class HeavyBankAccount implements BankAccount
{

    private $transactions = [];


    public function deposit(int $ammount)
    {
        $this->transactions[] = $ammount;

    }//end deposit()


    public function getBalance(): int
    {
        return (int) array_sum($this->transactions);

    }//end getBalance()


}//end class
